<template>
    <h2>登录成功页面</h2>
</template>

<script setup lang="ts">
import { useRoute } from 'vue-router'
const route = useRoute()
alert("用户名是"+route.params.name)
alert("密码是"+route.params.pwd)
alert('登录成功')
</script>